package com.atguigu.springcloud.service.impl;

import com.atguigu.springcloud.service.PaymentHystrixFeignService;
import org.springframework.stereotype.Component;

/**
 * @author ：pkq
 * @date ：Created in 2022/1/20 13:21
 * @description： feign接口方法兜底方法,统一为接口里面的方法进行异常处理
 * @modified By：
 * @version: $
 */
@Component
public class PaymentFallbackService implements PaymentHystrixFeignService {
    @Override
    public String paymentInfo_OK(Integer id) {
        return "-----PaymentFallbackService fallBack:::paymentInfo_OK";
    }

    @Override
    public String paymentInfo_TimeOut(Integer id) {
        return "-----PaymentFallbackService fallBack:::paymentInfo_TimeOut";
    }
}
